<ion-view title="从业人员">
  <ion-nav-buttons side="right">
    <button class="button no-animation button-icon icon ion-plus"
            ng-click="modal.show()">
    </button>
  </ion-nav-buttons>
  <ion-content overflow-scroll="true" padding="true" class="has-header">
    <ion-refresher
      pulling-text="下拉刷新..."
      on-refresh="doRefresh()">
    </ion-refresher>
    <ion-list>

      <!--没有数据提示-->

      <div ng-if="workerList.length ==0">
        <img src="img/nodatatable.png" class="center" style="padding: 15px;margin-top: 50px">
        <h4 align="center" style="margin-top: 30px">您还未录入从业人员,请添加右上角"+"进行添加</h4>
      </div>


      <ion-item class="item-thumbnail-left" ng-repeat="worker in workerList track by $index">

        <img src="img/iconfont-person.png" style="margin-top: 20px">
        <h2 style="margin-top: 5px;margin-bottom: 5px">姓名:{{worker.name}}</h2>
        <h2 style="margin-top: 5px;margin-bottom: 5px">身份证:{{worker.idCardNo}}</h2>
        <h2 style="margin-top: 5px;margin-bottom: 5px">曾用名:{{worker.usedName}}</h2>
        <h2 style="margin-top: 5px;margin-bottom: 5px">性别:{{worker.sex}}</h2>
        <h2 style="margin-top: 5px;margin-bottom: 5px">现住址:{{worker.address}}</h2>

        <ion-option-button class="button-assertive" ng-click="remove(worker)">
          <span style="padding-right: 25px; padding-left: 25px">删除</span>
        </ion-option-button>
      </ion-item>

    </ion-list>
    <br>
    <br>
    <br>


  </ion-content>

  <!--<div class="bar bar-footer">-->
    <!--&lt;!&ndash;<h5>温馨提示:在从业人员条目上向左滑动可以对其[修改],[删除]操作</h5>&ndash;&gt;-->
  <!--</div>-->
</ion-view>

